<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>选课界面</title>
</head>
<body>
<form method="post" th:align="center" th:action="@{/StudentInfo/submitCourse}">
    <center><h1>学生选课界面</h1></center>
    <!--遍历课程列表-->

    <div th:each="course:${courses}">
        <input name="checkCourses" type="checkbox" th:value="${course.name}"/><span th:text="${course.name}"></span><br>
    </div>
    <button>提交选课</button>
</form>


</body>
</html>